namespace TsCore.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class mig2 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Teams", "Sport_SportId", c => c.Int());
            AddForeignKey("dbo.Teams", "Sport_SportId", "dbo.Sports", "SportId");
            CreateIndex("dbo.Teams", "Sport_SportId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.Teams", new[] { "Sport_SportId" });
            DropForeignKey("dbo.Teams", "Sport_SportId", "dbo.Sports");
            DropColumn("dbo.Teams", "Sport_SportId");
        }
    }
}
